import socket
import time

HOST = '127.0.0.1'
PORT = 8000

if __name__ == '__main__':
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((HOST, PORT))
    s.send('Hello, World 1')
    '''
    time.sleep(1)
    s.send('Hello, World 2')
    time.sleep(1)
    s.send('Hello, World 3')
    time.sleep(1)
    s.send('Hello, World 4')
    time.sleep(1)
    s.send('Hello, World 5')
    '''
    data = s.recv(1024)
    s.close()
    print data
